package com.hu.zhcc.shiro.dao;


import com.hu.zhcc.shiro.entity.bo.Member;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;
@MapperScan
public interface MemberDAO {
    //根据id删除实体
    int deleteByPrimaryKey(Integer id);
    //新增实体
    int insertSelective(Member record);
    //获取所有实体的List
    List<Member> ListAllMember();
    //根据id获取实体
    Member getMember(Integer id);
    //根据id修改实体
    int updateByPrimaryKeySelective(Member record);
    //根据name模糊查询
    List<Member> getMemberByName(@Param("name") String name);
    //根据手机号获取实体
    Member getMemberByPhoneNumber(String phone);
    //根据档案号获取实体
    Member getMemberByIdCard(@Param("idCard") String idCard);
}